using Proto;

namespace sgf.server
{
    public class Session(long sessionId, NetChannel netChannel, PID pid)
    {
        public long sessionId { get; } = sessionId;

        public PID Pid = pid;

        private NetChannel NetChannel { get; } = netChannel;

        public void Send(byte[] msg)
        {
            NetChannel.Write(msg);
        }
    }
}